﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Messaging.Messages;
using CommunityToolkit.Mvvm.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace CommunityToolkitMvvmDemo.ViewModels
{
    public class Receiver2ViewModel : ObservableRecipient, IRecipient<RequestMessage<string>>
    {
        public void Receive(RequestMessage<string> message)
        {
            Debug.WriteLine(" request message reveived ~~~!!!");
            message.Reply("hello ~~~!!!");
        }
    }
}
